import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/customChallengeManager' };
export default {
  path: '/customChallengeManager',
  meta: {
    ...meta,
    icon: 'setting',
    title: '客户挑战管理',
  },
  component: Layout,
  children: ((basePath) => [
    {
      path: `${basePath}/launchCustomChallenge`,
      name: 'launchCustomChallenge',
      component: _import('customChallengeManager/launchCustomChallenge'),
      meta: {
        ...meta,
        title: '发起客户挑战',
      },
    },
    {
      path: `${basePath}/launchCustomChallenge/launchCustomChallengeConf`,
      name: 'launchCustomChallengeConf',
      component: _import('customChallengeManager/launchCustomChallenge/launchCustomChallengeConf'),
      meta: {
        ...meta,
        title: '挑战结果确认',
      },
    },
    {
      path: `${basePath}/customChallengeNotice`,
      name: 'customChallengeNotice',
      component: _import('customChallengeManager/customChallengeNotice'),
      meta: {
        ...meta,
        title: '客户挑战通知',
      },
    },
    {
      path: `${basePath}/customChallengeResQuery`,
      name: 'customChallengeResQuery',
      component: _import('customChallengeManager/customChallengeResQuery'),
      meta: {
        ...meta,
        title: '客户挑战结果查询',
      },
    },
    {
      path: `${basePath}/customChallengeQuery`,
      name: 'customChallengeQuery',
      component: _import('customChallengeManager/customChallengeQuery'),
      meta: {
        ...meta,
        title: '客户挑战查询',
      },
    },
    {
      path: `${basePath}/customChallengeQuery/customChallengeQueryDetail`,
      name: 'customChallengeQueryDetail',
      component: _import('customChallengeManager/customChallengeQuery/customChallengeQueryDetail'),
      meta: {
        ...meta,
        title: '客户挑战查询详情',
      },
    },
  ])('/customChallengeManager'),
};
